package com.atguigu.gulimall.order.dao;

import com.atguigu.gulimall.order.entity.OrderEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 订单
 *
 * @author syh
 * @email syh794996@163.com
 * @date 2022-06-06 23:05:10
 */
@Mapper
public interface OrderDao extends BaseMapper<OrderEntity> {

    /**
     * 根据订单号修改对应的订单状态为已付款
     *
     * @param outTradeNo
     * @param code
     */
    void updateOrderStatus(@Param("outTradeNo") String outTradeNo, @Param("code") Integer code);
}
